<template>
  <div class="app-container home">
    <el-row :gutter="20">
      <el-col :sm="24" :lg="24">
        <blockquote class="text-warning" style="font-size: 14px">
          <p>
            <el-link
              href="https://t.me/doraemont_channel"
              type="primary"
              target="_blank"
            >机器猫官方频道：@doraemont_bot</el-link
            >
          </p>
        </blockquote>

        <hr />
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :sm="24" :lg="12" style="padding-left: 20px">
        <h1>机器猫Telegram群管系统</h1>
        <div class="feature">
          <h3>简洁的指令</h3>
          <ul>
            <li>/start：打开面板、重载配置。</li>
            <li>/ban：禁言用户(回复用户消息，输入/ban)</li>
            <li>/block：添加违禁词(/block 违禁词1,违禁词2)</li>
            <li>其余功能由Web端管理，方便快捷。</li>
          </ul>
        </div>

        <div class="feature">
          <h3>自动欢迎消息</h3>
          <ul>
            <li>当新成员加入群组时，自动发送欢迎消息。</li>
            <li>支持自定义欢迎语。</li>
          </ul>
        </div>

        <div class="feature">
          <h3>成员管理</h3>
          <ul>
            <li>新成员人机验证：新成员加入时需通过人机验证，防止机器人或恶意用户加入。</li>
            <li>禁言成员：管理员可以命令机器人禁言特定成员，并设置禁言时间。</li>
          </ul>
        </div>

        <div class="feature">
          <h3>消息过滤</h3>
          <ul>
            <li>关键词过滤：自动检测并删除包含特定关键词的消息。</li>
            <li>广告过滤：自动识别并删除广告信息。</li>
            <li>垃圾信息过滤：自动识别并删除垃圾信息或重复消息。</li>
            <li>敏感词过滤：支持自定义敏感词库，自动过滤敏感内容。</li>
          </ul>
        </div>

        <div class="feature">
          <h3>自动化任务</h3>
          <ul>
            <li>定时任务：支持设置定时任务，如定时发送公告、清理无效链接等。</li>
            <li>自动清理：定期清理未发言的成员或僵尸账号，保持群组活跃度。</li>
          </ul>
        </div>

        <div class="feature">
          <h3>反垃圾机制</h3>
          <ul>
            <li>验证码验证：新成员加入时需通过验证码验证，防止机器人或恶意用户加入。</li>
            <li>行为分析：通过行为分析识别可疑用户，自动采取措施。</li>
          </ul>
        </div>
        <p>
          <b>当前版本:</b> <span>v{{ version }}</span>
        </p>
      </el-col>
    </el-row>
    <el-divider />
    <el-row :gutter="20">
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
            <span>更新日志</span>
          </div>
          <el-collapse accordion>
            <el-collapse-item title="v1.0.1 - 2024-11-28">
              <ol>
                <li>增加公共违禁词库，方便快捷导入违禁词</li>
                <li>其他细节优化</li>
              </ol>
            </el-collapse-item>
            <el-collapse-item title="v1.0.0 - 2024-11-11">
              <ol>
                <li>机器猫Telegram群管机器人系统上线</li>
              </ol>
            </el-collapse-item>
          </el-collapse>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "1.0.1",
    };
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    },
  },
};
</script>

<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
  .feature {
    margin-bottom: 20px;
  }
}
</style>

